/*
 * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package top.continew.admin.card.model.resp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import top.continew.admin.common.enums.GenderEnum;
import top.continew.starter.extension.crud.model.resp.BaseResp;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * 微信用户信息
 *
 * @author floyd
 * @since 2024/12/02 15:34
 */
@Data
@Schema(description = "微信用户信息")
public class WechatUserResp extends BaseResp {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 微信openId
     */
    @Schema(description = "微信openId")
    private String openId;

    /**
     * 昵称
     */
    @Schema(description = "昵称")
    private String nickname;

    /**
     * 头像
     */
    @Schema(description = "头像")
    private String avatar;

    /**
     * 性别（0：未知；1：男；2：女）
     */
    @Schema(description = "性别（0：未知；1：男；2：女）")
    private GenderEnum gender;

    /**
     * 国家
     */
    @Schema(description = "国家")
    private String country;

    /**
     * 省份
     */
    @Schema(description = "省份")
    private String province;

    /**
     * 城市
     */
    @Schema(description = "城市")
    private String city;

    /**
     * 关联用户
     */
    @Schema(description = "关联用户")
    private String userName;

    /**
     * 修改时间
     */
    @Schema(description = "新增时间")
    private LocalDateTime createTime;
}